<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div></div>
    <script>
        console.log(location);
        // 获取请求的参数
        params = params.substr(1);
        var params = location.search;   // ?uname=sssssss
        // 字符串转数组
        var arr = params.split('=');
        console.log(arr);
        params = arr[1];
        var div = document.querySelector('div');
        div.innerHTML = params + "欢迎您";
    </script>
</body>
</html>